package com.coderush.admin.sys.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * PackageName com.coderush.admin.sys.model.dto
 *
 * @Author Eason
 * @Version v1.0
 * @ClassName MenuAssginDto
 * @Date 2025/9/4
 * @Description TODO
 */
@Data
public class MenuAssignDto {


    @Schema(description = "角色id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 选中的菜单id的集合; Map的键表示菜单的id，值表示是否为半开; 0否，1是
     */
    @Schema(description = "选中的菜单id的集合")
    private List<Map<String , String>> menuIdList;

}